package cn.iocoder.yudao.module.design.convert.house;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.house.vo.*;
import cn.iocoder.yudao.module.design.controller.admin.house.vo.simpleVo.HouseSimpleRespVO;
import cn.iocoder.yudao.module.design.dal.dataobject.house.HouseDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 装修的房子信息 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface HouseConvert {

    HouseConvert INSTANCE = Mappers.getMapper(HouseConvert.class);

    HouseDO convert(HouseCreateReqVO bean);

    HouseDO convert(HouseUpdateReqVO bean);

    HouseDO convert(HouseOneReqVO bean);
    HouseRespVO convert(HouseDO bean);
    HouseOneResVO convertHouseOne(HouseDO bean);


    HouseTaskStaticResVO convertTaskStatic(HouseDO bean);

    List<HouseRespVO> convertList(List<HouseDO> list);

    PageResult<HouseRespVO> convertPage(PageResult<HouseDO> page);

    List<HouseExcelVO> convertList02(List<HouseDO> list);

    List<HouseSimpleRespVO> convertList04(List<HouseDO> list);


    HouseSimInfoVO convertSimInfo(HouseDO bean);

}
